package com.nbgroup.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("新增|修改字典参数模型")
public class DictDTO {

    @ApiModelProperty("字典id")
    private Long dictId;    //字典id

    @NotBlank(message = "字典名不能为空")
    @ApiModelProperty("字典名称")
    private String dictName;    //字典名称

    @NotBlank(message = "字典类型不能为空")
    @ApiModelProperty("字典类型")
    private String dictType;    //字典类型

    @NotNull(message = "字典状态不能为空")
    @ApiModelProperty("字典状态")
    private Integer status; //字典状态

    @ApiModelProperty("创建人名称")
    private String createBy;    //创建人名称

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;   //创建时间

}
